package com.bdqn.vueboot.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.vueboot.dto.UserDto;
import com.bdqn.vueboot.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface SysUserService extends IService<SysUser> {
    SysUser findByUserNameBiz(@Param("usrName") String usrName);

    IPage<SysUser> findPageByMap(String name, IPage<SysUser> pageable);

    SysUser findByUserIdBiz(Long id) throws Exception;

    void deleteByUserId(Long id) throws Exception;
//    void saveUser(SysUser user) throws Exception;

    /**
     * 查询用户所有信息用于邮件页面显示对应的数据
     *
     * @return
     */
    List<SysUser> allSysUserBiz();

    SysUser findOneByUsrNameBiz(String usrName);

    IPage list(IPage<SysUser> page,UserDto user);

    int add(SysUser sysUser, MultipartFile file);
}
